﻿using System.ComponentModel;

namespace MyFloridaHouse.libSvOpenDistricts.Criteria
{
    public class CriteriaDictionaryDTO : INotifyPropertyChanged
    {

        #region INotifyPropertyChanged
        public event PropertyChangedEventHandler PropertyChanged;
        protected void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #endregion

        public CriteriaDictionaryDTO(int iLayerID, int iDictionaryID, PropertyChangedEventHandler handler)
        {
            layerID = iLayerID;
            dictionaryID = iDictionaryID;
            if (handler != null)
            {
                PropertyChanged += handler;
            }
        }

        private int _layerID = 0;
        public int layerID
        {
            get { return _layerID; }
            set { if (_layerID != value) { _layerID = value; NotifyPropertyChanged("layerID"); } }
        }

        private int _dictionaryID = 0;
        public int dictionaryID
        {
            get { return _dictionaryID; }
            set { if (_dictionaryID != value) { _dictionaryID = value; NotifyPropertyChanged("dictionaryID"); } }
        }

        private int _min = 0;
        public int min
        {
            get { return _min; }
            set { if (_min != value) { _min = value; NotifyPropertyChanged("min"); } }
        }

        private int _max = 0;
        public int max
        {
            get { return _max; }
            set { if (_max != value) { _max = value; NotifyPropertyChanged("max"); } }
        }

    }
}
